import math
from collections import defaultdict

l = [1, 3, 5, 9, 15, 25, 27, 45, 75, 81, 135, 225, 405, 675, 2025]
to = defaultdict(list)
for c in l:
    for s in l:
        if c // math.gcd(c, s) * s == 2025:
            to[c].append(s)

dp = [defaultdict(lambda: 0) for _ in range(2026)]
for c in l:
    dp[0][c] = 1
MODE = int(1e9 + 7)
for i in range(1, 2025):
    for cur in l:
        for prev in to[cur]:
            dp[i][cur] += dp[i - 1][prev]
            dp[i][cur] %= MODE
print(sum(dp[-2].values()) % MODE)
